package com.yiban.demo.LoginUser.Entity;

import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class BiPassword {
    @NotBlank(message = "旧密码不能为空")
    private String oldPassword;
    @NotBlank(message = "新密码不能为空")
    private String newPassword;
    public boolean isPasswordEquals(){
        return oldPassword.equals(newPassword);
    }
}
